Skip to content

Fix for Useless toString on String#826

Merged
Andrey1994 merged 1 commit intomasterfrom
finding-autofix-2cc9518b
Apr 26, 2026
Merged

Fix for Useless toString on String#826
Andrey1994 merged 1 commit intomasterfrom
finding-autofix-2cc9518b

Conversation

@Andrey1994
Copy link
Copy Markdown
Member

To fix this, remove the unnecessary .toString() call from the logging statement in unpack_from_jar.
Best minimal fix (no functional change): replace:

  • file.getAbsolutePath ().toString ()

with:

  • file.getAbsolutePath ()

in java_package/brainflow/src/main/java/brainflow/JarHelper.java at the System.err.println line inside the second try block (around line 27). No imports, helper methods, or additional definitions are required.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@Andrey1994 Andrey1994 marked this pull request as ready for review April 26, 2026 22:33
@Andrey1994 Andrey1994 merged commit 952f091 into master Apr 26, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant